package com.newspublish.system.service;

import com.newspublish.system.entity.system.News;
import com.newspublish.system.utils.result.Result;

import java.util.List;

public interface NewsService {

    //获取新闻列表
    public Result getAllNews();

    //新增新闻
    public Result addNews(News news);

    //编辑新闻
    public Result editNews(News news);

    //审核新闻
    public Result auditNews(News news);

    //删除新闻
    public Result deleteNews(List<Long> id);

    //根据分类查询新闻
    public Result getByCategory(String category);

    //根据主键获取新闻网内容
    public Result getByPrimaryKey(Long id);

    //点赞
    public Result like(Long id);

    //根据作者获取新闻列表
    public Result getByAuthor(String author);


}
